﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class LoginCondition_DayLoginCondition :BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DateTime dt = new DateTime();

        try
        {
            dt = Convert.ToDateTime(Convert.ToDateTime(TextBox1.Text.Trim()).ToString("yyyy-MM-dd"));
        }
        catch (Exception)
        {
            AlertMsg("时间格式错误");

            return;
        }

        GridView1.DataSource = new LoginConditionBLL().GetEmplyeeLoginCondition(dt, -1);
        GridView1.DataBind();
    }
}